package cn.kai.org.mapper;

import cn.kai.basic.mapper.BaseMapper;
import cn.kai.org.domain.Employee;
import cn.kai.org.query.EmployeeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {
    Employee findByName(String username);

    Employee findByLogininfoId(Long id);

    void removeEmployeeRole(Long id);

    void saveEmployeeRole(@Param("eid") Long id,@Param("roles") List<Long> roles);

    List<Employee> list(Long shopId);
//    //添加
//    void add(Employee employee);
//
//    //修改
//    void update(Employee employee);
//    //删除by id
//    void delete(Long id);
//    //查询全部
//    List<Employee> findAll();
//    //查询单条
//    Employee findById(Long id);
//
//    //查询所有的count
//    Integer queryByCount(EmployeeQuery employeeQuery);
//
//    //分页查询
//    List<Employee> queryByPage(EmployeeQuery employeeQuery);
//
//    void batchDel(List<Long> ids);
}
